﻿@model DiarySocial.Models.RegisterModel
@{
    Layout = "~/Views/Shared/_LayoutForGuest.cshtml";
    ViewBag.SiteName = "Diary Social";
    ViewBag.Title = "Register";
}

<section id="content" class="m-t-lg wrapper-md animated fadeInDown">
    <div class="container aside-xl">
        <a class="navbar-brand block" href="@Url.Content("~")">@ViewBag.SiteName</a>
        <section class="m-b-lg">
            <header class="wrapper text-center">
                <strong>Sign up to find interesting thing</strong>
            </header>
            @using (Html.BeginForm()) {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary()
                <div class="list-group">
                    <div class="list-group-item">
                        @Html.TextBoxFor(m => m.UserName, new { @placeholder="User Name", @class="form-control no-border" })
                    </div>
                    <div class="list-group-item">
                        @Html.PasswordFor(m => m.Password, new { @placeholder="Password", @class="form-control no-border"})
                    </div>
                    <div class="list-group-item">
                        @Html.PasswordFor(m => m.ConfirmPassword, new { @placeholder="Confirm Password", @class="form-control no-border"})
                    </div>
                </div>
                <div class="checkbox m-b">
                    <label>
                        @Html.CheckBoxFor(m => m.AgreeTheTermsAndPolicy) Agree the <a href="#">terms and policy</a>
                    </label>
                </div>
                <button type="submit" class="btn btn-lg btn-primary btn-block">Sign up</button>
                <div class="line line-dashed"></div>
                <p class="text-muted text-center"><small>Already have an account?</small></p>
                <a href="@Url.Action("Login")" class="btn btn-lg btn-default btn-block">Sign in</a>
            }
        </section>
    </div>
</section>

@section Scripts {
    @Scripts.Render("~/bundles/bootstrapval")
}
